SRCS = iptc01.c iptc02.c iptc03.c
OUTS = $(SRCS:.c=.x)

CC = @CC@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@ \
	-L@abs_top_builddir@/xp/bas \
	-L@abs_top_builddir@/xp/net \
	-L@abs_top_builddir@/xp/lnx
LIBS = @LIBS@ -lxplnx -lxpnet -lxpbas

all: $(OUTS)

clean:
	rm -rf $(OUTS) *.o

.SUFFIXES: .c .x
.c.x:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
